<?php
namespace app\index\domain;

class Links extends Base
{
    /**
     * 自定义获取值
     */
    public function valueGet($key)
    {
        $cacheKey = md5(serialize('Links'.$key));
        if(isset($this->_cache[$cacheKey]))
            return $this->_cache[$cacheKey];
        if($contentList = D('index/Links')->getList($key)){
            return $this->_cache[$cacheKey] = $contentList;
        }
        return null;
    }
}

